package com.logos.service;

import com.logos.entity.Account;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface AccountService {

    void save(Account account);

    void update(Account account);

    void delete(Integer id);

    Account selectById(Integer id);

    List<Account> selectAll();

    @Transactional(rollbackFor = Exception.class)
    void transfer(String out,String in, Double money);
}
